package com.usian.article.feign;

import com.usian.model.behavior.pojos.ApBehaviorEntry;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("leadnews-behavior")
public interface BehaviorFeign {
    @GetMapping("/api/v1/behavior/get/entry")
    ApBehaviorEntry getEntry(@RequestParam("userId") Integer userId);

    @GetMapping("getLikeStatus/{userId}/{articleId}")
    Boolean getLikeStatus(@PathVariable Integer userId, @PathVariable Long articleId);
}
